!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function D(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function X(t){return"string"==typeof t}function b(t){return"function"==typeof t}function S(t){return"number"==typeof t}function n(t){return void 0===t}function E(t){return"object"==typeof t}function F(t){return!1!==t}function e(){return"undefined"!=typeof window}function R(t){return b(t)||X(t)}function i(t){return(At=gt(t,pe))&&zr}function I(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function z(t,e){return!e&&console.warn(t)}function a(t,e){return t&&(pe[t]=e)&&At&&(At[t]=e)||pe}function o(){return 0}function B(t){var e,r,i=t[0];if(E(i)||b(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=we.length;r--&&!we[r].targetTest(i););e=we[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new je(t[r],e)))||t.splice(r,1);return t}function L(t){return t._gsap||B(Pe(t))[0]._gsap}function s(t,e,r){return(r=t[e])&&b(r)?t[e]():n(r)&&t.getAttribute&&t.getAttribute(e)||r}function d(t,e){return(t=t.split(",")).forEach(e)||t}function U(t){return Math.round(1e5*t)/1e5||0}function Y(t){return Math.round(1e7*t)/1e7||0}function N(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function u(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++is;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e}function _(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function K(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function m(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function g(t,e,r,i){return t._startAt&&(wt?t._startAt.revert(_e):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function v(t){return t._repeat?vt(t._tTime,t=t.duration()+t._rDelay)*t:0}function y(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function k(t){return t._end=Y(t._start+(t._tDur/Math.abs(t._ts||t._rts||Zt)||0))}function x(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Y(r._time-(0Zt)&&e.render(r,!0)),m(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur(n=Math.abs(n))&&(s=i,o=n);return s}function at(t){return K(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&xt(t,"onInterrupt"),t}function ot(t,e,r){return(6*(t+=t<0?1:1>16,t>>8&De,t&De]:0:Se.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Se[t])p=Se[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(s=t.charAt(3))+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&De,p&De,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&De,t&De]}else if("hsl"===t.substr(0,3))if(p=c=t.match(ae),e){if(~t.indexOf("="))return p=t.match(oe),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=p[1]/100,i=2*(u=p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3=Ht?u.endTime(!1):e._dur;return X(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),n=r.indexOf("="),"<"===s||">"===s?(0<=n&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(0<=u._repeat))+(parseFloat(r.substr(1))||0)*(a?(n<0?u:i).totalDuration()/100:1)):n<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(n-1)+r.substr(n+1)),a&&i&&(s=s/100*(se(i)?i[0]:i).totalDuration()),1=r&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0=this.totalDuration()||!v&&_)&&(l!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0=i&&(s instanceof ir?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},e.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function(t){return X(t)?this.removeLabel(t):b(t)?this.killTweensOf(t):(_(this,t),t===this._recent&&(this._recent=this._last),m(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Y(ze.time-(0e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},e.tweenTo=function(t,e){e=e||{};var r,i=this,n=Me(i,t),s=e.startAt,a=e.onStart,o=e.onStartParams,u=e.immediateRender,h=ir.to(i,j({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale())||Zt,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(s&&"time"in s?s.time:i._time))/i.timeScale());h._dur!==t&&O(h,t,0,1).render(h._time,!0,!0),r=1}a&&a.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function(t,e,r){return this.tweenTo(e,j({startAt:{time:Me(this,t)}},r))},e.recent=function(){return this._recent},e.nextLabel=function(t){return void 0===t&&(t=this._time),st(this,Me(this,t))},e.previousLabel=function(t){return void 0===t&&(t=this._time),st(this,Me(this,t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Zt)},e.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return m(this)},e.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return i.prototype.invalidate.call(this,t)},e.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),m(this)},e.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=Ht;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),o<(r=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,Q(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=e;O(s,s===kt&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(t){if(kt._ts&&(h(kt,y(t,kt)),Dt=ze.frame),ze.frame>=Te){Te+=Qt.autoSleep||120;var e=kt._first;if((!e||!e._ts)&&Qt.autoSleep&&ze._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||ze.sleep()}}},t}(Ve);function Qe(t,e,r,i,n,s){var a,o,u,h;if(ye[t]&&!1!==(a=new ye[t]).init(n,a.rawVars?e[t]:function(t,e,r,i,n){if(b(t)&&(t=tr(t,n,e,r,i)),!E(t)||t.style&&t.nodeType||se(t)||ne(t))return X(t)?tr(t,n,e,r,i):t;var s,a={};for(s in t)a[s]=tr(t[s],n,e,r,i);return a}(e[t],i,n,s,r),r,i,s)&&(r._pt=o=new gr(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==St))for(u=r._ptLookup[r._targets.indexOf(n)],h=a._props.length;h--;)u[a._props[h]]=o;return a}function Ge(t,r,e,i){var n,s,a=r.ease||i||"power1.inOut";if(se(r))s=e[t]||(e[t]=[]),r.forEach(function(t,e){return s.push({t:e/(r.length-1)*100,v:t,e:a})});else for(n in r)s=e[n]||(e[n]=[]),"ease"===n||s.push({t:parseFloat(t),v:r[n],e:a})}j(Ke.prototype,{_lock:0,_hasPause:0,_forcing:0});function He(t,e,r,i,n,s,a,o,u,h){b(i)&&(i=i(n||0,t,s));var f,l=t[e],c="get"!==r?r:b(l)?u?t[e.indexOf("set")||!b(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():l,p=b(l)?u?lr:fr:hr;if(X(i)&&(~i.indexOf("random(")&&(i=nt(i)),"="===i.charAt(1)&&(!(f=N(c,i)+(H(c)||0))&&0!==f||(i=f))),!h||c!==i||Je)return isNaN(c*i)||""===i?(l||e in t||I(e,i),function(t,e,r,i,n,s,a){var o,u,h,f,l,c,p,d,_=new gr(this._pt,t,e,0,1,_r,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=nt(i)),s&&(s(d=[r,i],t,e),r=d[0],i=d[1]),u=r.match(he)||[];o=he.exec(i);)f=o[0],l=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===l.substr(-5)&&(h=1),f!==u[g++]&&(c=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:l||1===g?l:",",s:c,c:"="===f.charAt(1)?N(c,f)-c:parseFloat(f)-c,m:h&&h<4?Math.round:0},m=he.lastIndex);return _.c=m")}),s.duration();else{for(h in o={},y)"ease"===h||"easeEach"===h||Ge(h,y[h],o,y.easeEach);for(h in o)for(O=o[h].sort(function(t,e){return t.t-e.t}),a=A=0;a=t._tDur||e<0)&&t.ratio===u&&(u&&K(t,1),r||wt||(xt(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},t.targets=function(){return this._targets},t.invalidate=function(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),P.prototype.invalidate.call(this,t)},t.resetTo=function(t,e,r,i){Et||ze.wake(),this._ts||this.play();var n,s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ze(this,s),n=this._ease(s/this._dur),function(t,e,r,i,n,s,a){var o,u,h,f,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=t._ptCache[e]=[],h=t._ptLookup,f=t._targets.length;f--;){if((o=h[f][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return Je=1,t.vars[e]="+=0",Ze(t,a),Je=0,1;l.push(o)}for(f=l.length;f--;)(o=(u=l[f])._pt||u).s=!i&&0!==i||n?o.s+(i||0)+s*o.c:i,o.c=r-o.s,u.e&&(u.e=U(r)+H(u.e)),u.b&&(u.b=o.s+H(u.b))}(this,t,e,r,i,n,s)?this.resetTo(t,e,r,i):(x(this,0),this.parent||p(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?at(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,$e&&!0!==$e.vars.overwrite)._first||at(this),this.parent&&r!==this.timeline.totalDuration()&&O(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,s,a,o,u,h,f=this._targets,l=t?Pe(t):f,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,l))return"all"===e&&(this._pt=0),at(this);for(i=this._op=this._op||[],"all"!==e&&(X(e)&&(o={},d(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,i,n,s,a=t[0]?L(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(i in r=gt({},e),o)if(i in r)for(n=(s=o[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(f,e)),h=f.length;h--;)if(~l.indexOf(f[h]))for(o in n=c[h],"all"===e?(i[h]=e,a=n,s={}):(s=i[h]=i[h]||{},a=e),a)(u=n&&n[o])&&("kill"in u.d&&!0!==u.d.kill(o)||_(this,u,"_pt"),delete n[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&p&&at(this),this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return C(1,arguments)},n.delayedCall=function(t,e,r,i){return new n(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},n.fromTo=function(t,e,r){return C(2,arguments)},n.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new n(t,e)},n.killTweensOf=function(t,e,r){return kt.killTweensOf(t,e,r)},n}(Ve);function nr(t,e,r){return t.setAttribute(e,r)}function sr(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}j(ir.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),d("staggerTo,staggerFrom,staggerFromTo",function(r){ir[r]=function(){var t=new Ke,e=Ae.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function ar(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next}function or(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n}function ur(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?_(this,i,"_pt"):i.dep||(e=1),i=r;return!e}var hr=function(t,e,r){return t[e]=r},fr=function(t,e,r){return t[e](r)},lr=function(t,e,r,i){return t[e](i.fp,r)},cr=function(t,e){return b(t[e])?fr:n(t[e])&&t.setAttribute?nr:hr},pr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},dr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},_r=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},mr=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},gr=(vr.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=sr,this.m=t,this.mt=r,this.tween=e},vr);function vr(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||pr,this.d=a||this,this.set=o||hr,this.pr=u||0,(this._next=t)&&(t._prev=this)}function yr(t){return(br[t]||kr).map(function(t){return t()})}function xr(){var t=Date.now(),o=[];2